package com.github.fancyideas.exceptions;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class AppException extends RuntimeException {

    private String errorSign;
    private String errorMsg;

    public AppException(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public AppException(String errorSign, String errorMsg) {
        this.errorSign = errorSign;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getMessage() {
        return this.errorMsg;
    }

}
